package com.ruoyi.dj.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 地磁指数预报_预报数据_AP
 * </p>
 *
 * @author liuhl
 * @since 2024-09-03
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("SWDATA_FUTURE_MAG_AP")
@ApiModel(value = "SwdataFutureMagAp对象", description = "地磁指数预报_预报数据_AP")
public class SwdataFutureMagAp extends Model<SwdataFutureMagAp> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID主键")
    @TableId(value = "\"ID\"", type = IdType.ASSIGN_ID)
    private BigInteger id;

    @ApiModelProperty("起报时间")
    @TableField("\"PRE_TIME\"")
    private Date preTime;

    @ApiModelProperty("预报时间")
    @TableField("\"DATETIME\"")
    private Date datetime;

    @ApiModelProperty("预报方法")
    @TableField("\"METHOD\"")
    private String method;

    @ApiModelProperty("预报值")
    @TableField("\"VALUE\"")
    private Double value;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
